import request from '@/utils/request'

// 查询项目-拍卖列表
export function listAuction(query) {
  return request({
    url: '/industry/frontend/auction/list',
    method: 'get',
    params: query
  })
}

// 查询项目-拍卖详细
export function getAuction(id) {
  return request({
    url: '/industry/frontend/auction/' + id,
    method: 'get'
  })
}

// 新增项目-拍卖
export function addAuction(data) {
  return request({
    url: '/industry/frontend/auction',
    method: 'post',
    data: data
  })
}

// 修改项目-拍卖
export function updateAuction(data) {
  return request({
    url: '/industry/frontend/auction',
    method: 'put',
    data: data
  })
}

// 删除项目-拍卖
export function delAuction(id) {
  return request({
    url: '/industry/frontend/auction/' + id,
    method: 'delete'
  })
}
